package models

// ProductMaterial 定义产品和原材料的映射关系
type ProductMaterial struct {
	ProductName   string   `json:"product_name"`
	MaterialNames []string `json:"material_names"`
}

// ProductMaterialMap 定义常见产品所需的原材料组件
var ProductMaterialMap = map[string][]string{
	"手机":    {"屏幕", "电池", "主板"},
	"笔记本电脑": {"显示屏", "键盘", "电池", "主板"},
	"智能手表":  {"显示屏", "电池", "主板"},
	"钢笔":    {"笔尖", "笔帽", "笔筒"},
}

